.@{form-prefix-cls}-item {
  margin-bottom: 12px !important;
}
.@{form-prefix-cls}-vertical .@{form-prefix-cls}-item {
  margin-bottom: 0 !important;
}
.@{form-prefix-cls}-inline .@{form-prefix-cls}-item {
  margin-right: 12px !important;
  margin-bottom: 0 !important;
  &:last-child {
    margin-right: 0 !important;
  }
}

.ant-select {
  &-dropdown {
    strong {
      color: #d75b5d;
    }
  }
  &-dropdown-menu-item {
    overflow: visible !important;
  }
}

form textarea.ant-input {
  margin-bottom: 0 !important;
}

.@{transfer-prefix-cls} {
  text-align: center;
  .@{transfer-prefix-cls}-list {
    text-align: left;
  }
}

.upload-process {
  position: fixed;
  width: 560px;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  max-height: 320px;
  border-radius: 3px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  &-header {
    .clearfix;
    padding: 10px 15px;
    border-bottom: solid 1px #f3f3f3;
    h2 {
      float: left;
      font-size: 16px;
      color: #6f8092;
      font-weight: normal;
      line-height: normal;
    }
  }
  &-toolbar {
    float: right;
    .fa,
    i {
      padding: 1px 5px;
      color: #61b3d7;
      cursor: pointer;
      &:hover {
        color: #d43f3a;
      }
    }
  }
  &-body {
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 280px;
  }
  .upload-file {
    padding: 10px 15px;
    border-bottom: solid 1px #eaeaea;

    img {
      display: inline-block;
      width: 36px;
      height: 36px;
      margin-right: 10px;
      vertical-align: middle;
    }
    .file-name {
      display: inline-block;
      max-width: 300px;
      white-space: nowrap;
      text-overflow: ellipsis;
      vertical-align: middle;
      overflow: hidden;
      color: #4e545f;
    }
    .file-progress {
      display: inline-block;
      float: right;
      width: 160px;
      height: 14px;
      margin-top: 12px;
      border-radius: 5px;
      background-color: #eeeeee;
      &-bar {
        display: flex;
        height: 100%;
        flex-direction: column;
        transition: width 0.6s ease-in;
        border-radius: 5px;
        background-color: #61b3d7;
      }
    }
    .file-message {
      display: inline-block;
      float: right;
      margin-top: 8px;
      color: #61b3d7;
    }
  }
}

.area-form {
  border: 1px solid #cccccc;
  border-radius: 3px;
  &.active {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  }
  &-body {
    textarea {
      height: 70px;
      resize: none;
      border: none !important;
      box-shadow: none !important;
    }
  }
  &-footer {
    padding: 10px;
    text-align: right;
    button {
      margin-left: 12px;
      &:first-child {
        margin-left: 0;
      }
    }
  }
}

.tools(@tools-width: 72px) {
  display: inline-flex;
  align-items: center;
  width: @tools-width;
  // font-size:0;
  // text-align:right;

  .ico-btn {
    display: inline-block;
    min-width: 18px;
    height: 16px;
    font-size: 14px;
    text-align: center;
    line-height: 16px;
    vertical-align: middle;
    cursor: pointer;

    &.fa-minus-square,
    &:hover {
      color: #d43f3a;
    }
  }
  .ico-btns {
    display: inline-block;
    vertical-align: middle;
    color: #5cb76f;
    .ico-btn {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 8px;
      line-height: 8px;
    }
  }
}

.form-title {
  margin-top: 12px;
  .clearfix;

  h2 {
    display: inline-block;
    font-size: 14px;
    color: #d75b5d;
    vertical-align: bottom;
    &:before {
      .iconfont('\f292');
      margin-right: 5px;
      font-size: 12px;
      // color:#5CB76F;
    }
  }
  &-toolbar {
    float: right;
  }
}
.field-options {
  // margin-top: 12px;
  h3 {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dotted #cdcdcd;
  }
  .field-option {
    display: flex;
    margin-top: 7px;
    // padding: 10px 0;
    // border-bottom: 1px dotted #cdcdcd;
    &:first-child {
      margin-top: 0;
      // border-top: 1px dotted #cdcdcd;
    }
    .ant-form-item {
      margin-bottom: 0 !important;
      padding-bottom: 0;
    }
    &-body {
      flex: 1;

      table {
        margin: -10px 0;
        th {
          font-weight: normal;
        }
        th,
        td {
          padding: 10px 5px;
          border-bottom: 1px dotted #cdcdcd;
        }
        // tr:last-child td,
        tbody:last-child td,
        thead:last-child th {
          border: none !important;
        }
        table {
          margin: 0;
          td {
            padding: 5px;
            border: none !important;
            &.x-control {
              padding-top: 10px;
              padding-bottom: 10px;
            }
          }
        }

        &.data-table {
          tr:first-child td {
            border: none;
          }
          tr:last-child td {
            border-bottom: 1px dotted #cdcdcd;
          }
          td {
            vertical-align: middle;
            table {
              margin-top: -20px;
            }
          }
        }
      }
    }
    &-footer {
      .tools();
      padding-left: 12px;

      label {
        margin: 0;
        font-size: 14px;
        vertical-align: middle;
      }
    }
    &-data {
      // &:before {
      //  .iconfont('\f046');
      //  margin-right:7px;
      //  color:#5CB76F;
      // }
    }
    &-form {
      // margin-top: 7px;
    }
  }
}
